﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000787 RID: 1927
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetPamSkinDataScRsp : IMessage<GetPamSkinDataScRsp>, IMessage, IEquatable<GetPamSkinDataScRsp>, IDeepCloneable<GetPamSkinDataScRsp>, IBufferMessage
	{
		// Token: 0x1700189E RID: 6302
		// (get) Token: 0x0600569A RID: 22170 RVA: 0x000EA199 File Offset: 0x000E8399
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetPamSkinDataScRsp> Parser
		{
			get
			{
				return GetPamSkinDataScRsp._parser;
			}
		}

		// Token: 0x1700189F RID: 6303
		// (get) Token: 0x0600569B RID: 22171 RVA: 0x000EA1A0 File Offset: 0x000E83A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetPamSkinDataScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170018A0 RID: 6304
		// (get) Token: 0x0600569C RID: 22172 RVA: 0x000EA1B2 File Offset: 0x000E83B2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetPamSkinDataScRsp.Descriptor;
			}
		}

		// Token: 0x0600569D RID: 22173 RVA: 0x000EA1B9 File Offset: 0x000E83B9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetPamSkinDataScRsp()
		{
		}

		// Token: 0x0600569E RID: 22174 RVA: 0x000EA1CC File Offset: 0x000E83CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetPamSkinDataScRsp(GetPamSkinDataScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.unlockedPamSkinId_ = other.unlockedPamSkinId_.Clone();
			this.curPamSkinId_ = other.curPamSkinId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600569F RID: 22175 RVA: 0x000EA219 File Offset: 0x000E8419
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetPamSkinDataScRsp Clone()
		{
			return new GetPamSkinDataScRsp(this);
		}

		// Token: 0x170018A1 RID: 6305
		// (get) Token: 0x060056A0 RID: 22176 RVA: 0x000EA221 File Offset: 0x000E8421
		// (set) Token: 0x060056A1 RID: 22177 RVA: 0x000EA229 File Offset: 0x000E8429
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170018A2 RID: 6306
		// (get) Token: 0x060056A2 RID: 22178 RVA: 0x000EA232 File Offset: 0x000E8432
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> UnlockedPamSkinId
		{
			get
			{
				return this.unlockedPamSkinId_;
			}
		}

		// Token: 0x170018A3 RID: 6307
		// (get) Token: 0x060056A3 RID: 22179 RVA: 0x000EA23A File Offset: 0x000E843A
		// (set) Token: 0x060056A4 RID: 22180 RVA: 0x000EA242 File Offset: 0x000E8442
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CurPamSkinId
		{
			get
			{
				return this.curPamSkinId_;
			}
			set
			{
				this.curPamSkinId_ = value;
			}
		}

		// Token: 0x060056A5 RID: 22181 RVA: 0x000EA24B File Offset: 0x000E844B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetPamSkinDataScRsp);
		}

		// Token: 0x060056A6 RID: 22182 RVA: 0x000EA25C File Offset: 0x000E845C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetPamSkinDataScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.unlockedPamSkinId_.Equals(other.unlockedPamSkinId_) && this.CurPamSkinId == other.CurPamSkinId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060056A7 RID: 22183 RVA: 0x000EA2BC File Offset: 0x000E84BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.unlockedPamSkinId_.GetHashCode();
			if (this.CurPamSkinId != 0U)
			{
				num ^= this.CurPamSkinId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060056A8 RID: 22184 RVA: 0x000EA322 File Offset: 0x000E8522
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060056A9 RID: 22185 RVA: 0x000EA32A File Offset: 0x000E852A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060056AA RID: 22186 RVA: 0x000EA334 File Offset: 0x000E8534
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Retcode);
			}
			this.unlockedPamSkinId_.WriteTo(ref output, GetPamSkinDataScRsp._repeated_unlockedPamSkinId_codec);
			if (this.CurPamSkinId != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.CurPamSkinId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060056AB RID: 22187 RVA: 0x000EA3A0 File Offset: 0x000E85A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.unlockedPamSkinId_.CalculateSize(GetPamSkinDataScRsp._repeated_unlockedPamSkinId_codec);
			if (this.CurPamSkinId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CurPamSkinId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060056AC RID: 22188 RVA: 0x000EA40C File Offset: 0x000E860C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetPamSkinDataScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.unlockedPamSkinId_.Add(other.unlockedPamSkinId_);
			if (other.CurPamSkinId != 0U)
			{
				this.CurPamSkinId = other.CurPamSkinId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060056AD RID: 22189 RVA: 0x000EA46D File Offset: 0x000E866D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060056AE RID: 22190 RVA: 0x000EA478 File Offset: 0x000E8678
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 32U)
				{
					if (num == 16U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 32U)
					{
						goto IL_3F;
					}
				}
				else
				{
					if (num == 34U)
					{
						goto IL_3F;
					}
					if (num == 40U)
					{
						this.CurPamSkinId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				continue;
				IL_3F:
				this.unlockedPamSkinId_.AddEntriesFrom(ref input, GetPamSkinDataScRsp._repeated_unlockedPamSkinId_codec);
			}
		}

		// Token: 0x040021D8 RID: 8664
		private static readonly MessageParser<GetPamSkinDataScRsp> _parser = new MessageParser<GetPamSkinDataScRsp>(() => new GetPamSkinDataScRsp());

		// Token: 0x040021D9 RID: 8665
		private UnknownFieldSet _unknownFields;

		// Token: 0x040021DA RID: 8666
		public const int RetcodeFieldNumber = 2;

		// Token: 0x040021DB RID: 8667
		private uint retcode_;

		// Token: 0x040021DC RID: 8668
		public const int UnlockedPamSkinIdFieldNumber = 4;

		// Token: 0x040021DD RID: 8669
		private static readonly FieldCodec<uint> _repeated_unlockedPamSkinId_codec = FieldCodec.ForUInt32(34U);

		// Token: 0x040021DE RID: 8670
		private readonly RepeatedField<uint> unlockedPamSkinId_ = new RepeatedField<uint>();

		// Token: 0x040021DF RID: 8671
		public const int CurPamSkinIdFieldNumber = 5;

		// Token: 0x040021E0 RID: 8672
		private uint curPamSkinId_;
	}
}
